﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Input;
using Microsoft.Practices.Prism.Commands;
using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Prism.Regions;
using Microsoft.Practices.Unity;
using TripAssistantDesktop.View;

namespace TripAssistantDesktop.Modules
{
    class TripsNavigationModule : IModule
    {
       
        private readonly IRegionViewRegistry regionViewRegistry;

        public TripsNavigationModule(IRegionViewRegistry registry, IUnityContainer container)
        {
            this.regionViewRegistry = registry;

        }



        public void Initialize()
        {
            //We need to register our Module in TripNavigationRegion.
            regionViewRegistry.RegisterViewWithRegion("TripNavigationRegion", typeof(TripsNavigationView));
        }
    }
}
